package com.yp.infrastructure.shiro.model;

import com.auth0.jwt.algorithms.Algorithm;
import com.auth0.jwt.interfaces.DecodedJWT;
import com.yp.infrastructure.common.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.SuperBuilder;

import java.util.Date;


@Data
@EqualsAndHashCode(callSuper = true)
@SuperBuilder(toBuilder = true)
public abstract class BaseCredential extends BaseModel {


    private String sysUserId;
    private String partnerId;

    public abstract String getToken(Algorithm algorithm, Date expiration);
    public abstract void setFieldsValue(DecodedJWT jwt);


}
